package lk2_tests.remoting
{
	import flash.events.EventDispatcher;
	
	import lk2.config.AbsConfigObj;
	import lk2.events.ConfigEvent;
	
	public class MockConfigObj extends AbsConfigObj
	{
		private var eventDispatcher:EventDispatcher;
		
		private var mockXML:XML = 
		<parameters>
			<param name="cfc" description="Coldfusion components root dir">tmt_calendar.components.flex</param>
			<param name="calendarFacade" description="cfc facade for flex client">flexFacade</param>
			<param name="contextRoot" description="Coldfusion components root dir">http://#cgi.server_name#:#cgi.server_port#/</param>
			<param name="amf-channel-id" description="AMF Channel ID">test-channel-id</param>
		</parameters>;
		
		public function MockConfigObj()
		{
			super(null);
			this._configXML = mockXML;
			dispatchEvent(new ConfigEvent(ConfigEvent.CONFIG_LOADED));
		}
		
	}
}